package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.SysCity;

import java.util.List;

/**
 * @author YanWenliang
 * @date 2024/6/17 15:01
 * @desciption:
 */
public interface SysCityService {

    List<SysCity> selectCityListByParentId(Long parentId);

    // 根据子元素获取父元素
    List<SysCity> selectCityListFromChildToParentId();

    List<SysCity> selectCityList(Long parentId);

    List<TreeSelect> buildCityTreeSelect(List<SysCity> citys);

    List<Long> selectCityListByUserId(String userId);

    List<SysCity> getCityListByUserId();
}
